# Simple makefile for compiling the cunit test

all: bike_data_test

bike_data_test: basic.o bike_data_test.o cuerror.o mymem.o testdb.o testrun.o util.o bike_data.o
	gcc ./Obj/*o -o bike_data_test

bike_data_test.o:
	gcc -c bike_data_test.c -o ./Obj/bike_data_test.o

basic.o:
	gcc -c ./CUnit/Sources/Basic/Basic.c -o ./Obj/basic.o

cuerror.o:
	gcc -c ./CUnit/Sources/Framework/CUError.c -o ./Obj/cuerror.o

mymem.o:
	gcc -c ./CUnit/Sources/Framework/MyMem.c -o ./Obj/mymem.o

testdb.o:
	gcc -c ./CUnit/Sources/Framework/TestDB.c -o ./Obj/testdb.o

testrun.o:
	gcc -c ./CUnit/Sources/Framework/TestRun.c -o ./Obj/testrun.o
	
util.o:
	gcc -c ./CUnit/Sources/Framework/Util.c -o ./Obj/util.o

bike_data.o:
	gcc -c ../bike_data.c -o ./Obj/bike_data.o

clean:
	rm -rf ./Obj/*o bike_data_test
